package com.opticon.vaadinR.runnable;

import com.opticon.vaadinR.core.RFilter;
import com.opticon.vaadinR.core.RSource;

import java.util.Observable;
import java.util.Observer;

/**
 * This class is a
 */
public abstract class RExecution extends Thread {
    protected RSource iRSource;
    protected RFilter iRFilter;
    protected RRunner iRRunner;

    protected LocalObservable iObservable = new LocalObservable();


    public void addObserver(Observer aObserver){
        iObservable.addObserver(aObserver);
    }

    public void notifyObservers(){
        iObservable.notifyObservers();
    }

    protected class LocalObservable extends Observable {
        @Override
        public void setChanged() {
            super.setChanged();
        }
    }

}
